// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.vehicle;
/**
 * @see com.jrsystems.fleet.vehicle.VehicleColour
 */
public class VehicleColourDaoImpl
    extends com.jrsystems.fleet.vehicle.VehicleColourDaoBase
{
    /**
     * @see com.jrsystems.fleet.vehicle.VehicleColourDao#toVehicleColourVO(com.jrsystems.fleet.vehicle.VehicleColour, com.jrsystems.fleet.vehicle.vo.VehicleColourVO)
     */
    public void toVehicleColourVO(
        com.jrsystems.fleet.vehicle.VehicleColour source,
        com.jrsystems.fleet.vehicle.vo.VehicleColourVO target)
    {
        // @todo verify behavior of toVehicleColourVO
        super.toVehicleColourVO(source, target);
    }


    /**
     * @see com.jrsystems.fleet.vehicle.VehicleColourDao#toVehicleColourVO(com.jrsystems.fleet.vehicle.VehicleColour)
     */
    public com.jrsystems.fleet.vehicle.vo.VehicleColourVO toVehicleColourVO(final com.jrsystems.fleet.vehicle.VehicleColour entity)
    {
        // @todo verify behavior of toVehicleColourVO
        return super.toVehicleColourVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.jrsystems.fleet.vehicle.VehicleColour loadVehicleColourFromVehicleColourVO(com.jrsystems.fleet.vehicle.vo.VehicleColourVO vehicleColourVO)
    {
        // @todo implement loadVehicleColourFromVehicleColourVO
        throw new java.lang.UnsupportedOperationException("com.jrsystems.fleet.vehicle.loadVehicleColourFromVehicleColourVO(com.jrsystems.fleet.vehicle.vo.VehicleColourVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.jrsystems.fleet.vehicle.VehicleColour vehicleColour = this.load(vehicleColourVO.getId());
        if (vehicleColour == null)
        {
            vehicleColour = com.jrsystems.fleet.vehicle.VehicleColour.Factory.newInstance();
        }
        return vehicleColour;
        */
    }

    
    /**
     * @see com.jrsystems.fleet.vehicle.VehicleColourDao#vehicleColourVOToEntity(com.jrsystems.fleet.vehicle.vo.VehicleColourVO)
     */
    public com.jrsystems.fleet.vehicle.VehicleColour vehicleColourVOToEntity(com.jrsystems.fleet.vehicle.vo.VehicleColourVO vehicleColourVO)
    {
        // @todo verify behavior of vehicleColourVOToEntity
        com.jrsystems.fleet.vehicle.VehicleColour entity = this.loadVehicleColourFromVehicleColourVO(vehicleColourVO);
        this.vehicleColourVOToEntity(vehicleColourVO, entity, true);
        return entity;
    }


    /**
     * @see com.jrsystems.fleet.vehicle.VehicleColourDao#vehicleColourVOToEntity(com.jrsystems.fleet.vehicle.vo.VehicleColourVO, com.jrsystems.fleet.vehicle.VehicleColour)
     */
    public void vehicleColourVOToEntity(
        com.jrsystems.fleet.vehicle.vo.VehicleColourVO source,
        com.jrsystems.fleet.vehicle.VehicleColour target,
        boolean copyIfNull)
    {
        // @todo verify behavior of vehicleColourVOToEntity
        super.vehicleColourVOToEntity(source, target, copyIfNull);
    }

}